package com.zx.mes.hyl.test.consumer.controller;

import com.zx.mes.hyl.test.consumer.feign.HelloRemote;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by hyl on 17/11/19.
 */
@RestController
public class ConsumerController {

    /* 无语啊，报错结果也是对的，时间浪了好多 */
    @Autowired
    private HelloRemote helloRemote;

    @GetMapping("/hello")
    public String hello(){
        return helloRemote.hello("xx");
    }

}
